package com.sise.wangzhan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.util.Scanner;

@SpringBootApplication
public class SpringCloud03RibbonServerApplication {

    public static void main(String[] args) {
        //SpringApplication.run(SpringCloud03RibbonServerApplication.class, args);
        @SuppressWarnings("resource")
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入端口号：");
        String port = scan.nextLine();

        new SpringApplicationBuilder(SpringCloud03RibbonServerApplication.class)
                .properties("server.port="+port).run(args);


    }

}
